package com.ruoyi.system.service.construction.impl;

import com.ruoyi.system.domain.construction.Strategy;
import com.ruoyi.system.mapper.construction.StrategyMapper;
import com.ruoyi.system.service.construction.StrategyService;
import com.ruoyi.system.utils.TokenUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StrategyServiceImpl implements StrategyService {
    @Autowired
    private StrategyMapper strategyMapper;


    /**
     * 查询施工攻略
     *
     * @param strategyId 施工攻略ID
     * @return 施工攻略
     */
    @Override
    public Strategy selectStrategyById(Long strategyId)
    {
        return strategyMapper.selectStrategyById(strategyId);
    }

    /**
     * 查询施工攻略列表
     *
     * @param strategy 施工攻略
     * @return 施工攻略
     */
    @Override
    public List<Strategy> selectStrategyList(Strategy strategy)
    {
        return strategyMapper.selectStrategyList(strategy);
    }

    /**
     * 新增施工攻略
     *
     * @param strategy 施工攻略
     * @return 结果
     */
    @Override
    public int insertStrategy(Strategy strategy)
    {
        return strategyMapper.insertStrategy(strategy);
    }

    /**
     * 修改施工攻略
     *
     * @param strategy 施工攻略
     * @return 结果
     */
    @Override
    public int updateStrategy(Strategy strategy)
    {
        return strategyMapper.updateStrategy(strategy);
    }

    /**
     * 批量删除施工攻略
     *
     * @param strategyIds 需要删除的施工攻略ID
     * @return 结果
     */
    @Override
    public int deleteStrategyByIds(Long[] strategyIds)
    {
        return strategyMapper.deleteStrategyByIds(strategyIds);
    }

    /**
     * 删除施工攻略信息
     *
     * @param strategyId 施工攻略ID
     * @return 结果
     */
    @Override
    public int deleteStrategyById(Long strategyId)
    {
        return strategyMapper.deleteStrategyById(strategyId);
    }
}
